package dev.pocketpal;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.Menu;
import android.view.View;
import android.view.Window;

public class LandingActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
    	super.onCreate(savedInstanceState);
        
    	Log.i("LandingActivity", "Launching landing page");
        this.requestWindowFeature(Window.FEATURE_NO_TITLE);
        setContentView(R.layout.activity_landing);
    }

    /**
     * getStarted
     * Intent that occurs once the getStartedButton is pressed
     * (starts the HatchingActivity)
     * 
     * @param view The view that was clicked
     */
    public void getStarted(View view) {
    	Intent intent = new Intent(this, HatchingActivity.class);
    	startActivity(intent);
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        // Inflate the menu; this adds items to the action bar if it is present.
        getMenuInflater().inflate(R.menu.landing, menu);
        return true;
    }
    
}
